package com.core.enums;

import lombok.AllArgsConstructor;

import lombok.Getter;



@Getter
@AllArgsConstructor
public enum ResultCode {

    SUCCESS(1000,"操作成功"),

    ERROR(2000,"服务器内部错误"),

    FAILED(3000,"操作失败"),

    FAILED_UNAUTHORIZED(3001,"未授权"),

    FAILED_PARAMS_VALIDATE(3002,"参数校验失败"),
    FAILED_NOT_EXISTS(3003,"资源不存在"),
    FAILED_ALREADY_EXISTS(3004,"资源已存在"),

    AILED_USER_EXISTS(3101,"用户已存在"),
    FAILED_USER_NOT_EXISTS(3102,"用户不存在"),
    FAILED_LOGIN(3103, "用户名或密码错误"),
    FAILED_USER_BANNED(3104,"您已被列入黑名单"),
    FAILED_USER_PHONE(3105,"您的手机号格式不正确"),
    FREQUENT_OPERATIONS(3106,"您的操作频繁,请稍后重试"),
    TIMES_UPPER_LIMIT(3107,"请求次数已达上限"),
    CODE_PAST_DUE(3108,"验证码过期,请重新获取"),
    CODE_IS_ERROR(3109,"验证码错误"),

    EXAM_START_TIME_BEFORE_CURRENT_TIME(3201,"竞赛开始时间不能早于当前时间"),
    EXAM_START_TIME_AFTER_END_TIME(3202,"竞赛结束时间不能在开始时间之前"),
    EXAM_ALREADY_EXISTS(3203,"竞赛已存在"),
    QUESTION_NOT_EXISTS(3204,"题目不存在"),
    EXAM_NOT_EXISTS(3204,"竞赛不存在"),
    EXAM_IS_START(3205,"竞赛已经开始"),
    EXAM_NOT_HAVE_QUESTION(3206,"竞赛中不包含题目"),
    EXAM_IS_FINISHED(3207,"当前竞赛已经结束,不可再次操作"),
    EXAM_IS_PUBLISH(3208,"当前竞赛已经发布,请撤销后操作"),

    USER_EXAM_IS_ENTER(3301,"您已经报名参加了当前竞赛"),

    FAILED_FILE_UPLOAD(3302,"文件上传失败"),
    FAILED_FILE_UPLOAD_TIME_LIMIT(3303, "文件上传超时"),

    FAILED_FIRST_QUESTION(3401,"当前是第一题,前面没有题目了哦~"),
    FAILED_LAST_QUESTION(3401,"当前是最后一题,后面没有题目了哦~"),

    NOT_SUPPORT_PROGRAM(3501,"不支持此种类型的语言"),
    FAILED_RABBIT_PRODUCE(3701, "mq生产消息异常");





    private Integer code;
    private String msg;
}
